import { Outlet, createRootRoute } from '@tanstack/react-router'
import { Toaster } from '@/components/ui/sonner'
import { SearchProvider } from '@/context/search-provider'
import '@/styles/index.css'

export const Route = createRootRoute({
  component: () => (
    <SearchProvider>
      <Outlet />
      <Toaster />
    </SearchProvider>
  ),
})

export const rootRoute = Route